package com.fourthGroup.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Coupon {
    
    private Long id;
    
    private String couponCode;
    
    private String couponName;
    
    private Integer couponType; // 1-满减券 2-折扣券
    
    private Double discount; // 折扣或满减金额
    
    private Double threshold; // 满减门槛
    
    private Date startTime;
    
    private Date endTime;
    
    private Integer status; // 0-未使用 1-已使用 2-已过期
    
    private Integer stock; // 库存数量
    
    private Integer total; // 总数量
    
    private Date createTime;
} 